package org.edu.modules.act.controller;


import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.edu.common.api.vo.Result;
import org.edu.common.aspect.annotation.AutoLog;
import org.edu.modules.act.service.TaskService;
import org.edu.modules.act.service.VeActiPublicService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;

@Api(tags="OA公共数据")
@RestController
@RequestMapping("oa/veActiPublic")
@Slf4j
public class VeActiPublicController {

    @Resource
    private TaskService taskService;
    @Resource
    private VeActiPublicService veActiPublicService;

    //2.	我的待办列表
    /**
     * 查询任务分页
     *
     *
     * @param taskName    任务名称
     * @return
     */
    @AutoLog(value = "2.我的待办列表/6.工作委托列表")
    @ApiOperation(value="获取待办列表信息", notes="根据用户id获取待办列表信息")
    @GetMapping(value = "/queryTask")
    public Result<?> queryTask(String taskName) {
        Map<String, Object> data = veActiPublicService.queryTask(taskName);
        System.out.println("查询"+data);
        return Result.OK(data);
    }



}
